
// WinHomeServerDlg.h : header file
//

#pragma once
#include "afxcmn.h"
#include <string>
using namespace std;

// CWinHomeServerDlg dialog
class CWinHomeServerDlg : public CDialog
{
// Construction
public:
	CWinHomeServerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_WINHOMESERVER_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButtonBrower();
	CString m_SharedFolder;
	DWORD m_IP;

	void		  SaveConfig();
	void		  PrepareServerData();
	void		  UpdateToServerData();
	void		  UpdateUIFromServerData();
	afx_msg void OnNMThemeChangedIpaddress1(NMHDR *pNMHDR, LRESULT *pResult);
	CString m_URL;
	afx_msg void OnBnClickedButtonStart();
	afx_msg void OnBnClickedCancel();
	CListCtrl m_SharedFolderListCtrl;

	bool		IsExist(wstring strFolder);
};
